unit frm_RecalcAll;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, shbl_Card, PropFilerEh, FIBDatabase, pFIBDatabase, FIBQuery,
  pFIBQuery, pFIBStoredProc, PropStorageEh, ActnList, Menus, StdCtrls,
  Buttons, ExtCtrls;

type
  TfrmRecalcAll = class(TshblCard)
    prRecalcAll: TpFIBStoredProc;
    trRecalcAll: TpFIBTransaction;
    Label1: TLabel;
    lWait: TLabel;
    lFinish: TLabel;
    procedure aApplyExecute(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmRecalcAll: TfrmRecalcAll;

implementation

uses MAIN_DM;

{$R *.dfm}

procedure TfrmRecalcAll.aApplyExecute(Sender: TObject);
begin
  lWait.Visible := true;
  lFinish.Visible := false;  
  Application.ProcessMessages;
  prRecalcAll.ExecProc;
  Application.ProcessMessages;
  lWait.Visible := false;
  lFinish.Visible := true;
  Application.ProcessMessages;
end;

end.
